package com.showgood.controller {
	import com.showgood.core.AbstractSimpleCommand;
	import com.showgood.config.SangoConst;
	import com.showgood.socket.SingleSocketCommand;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	import com.showgood.vo.ReplyLoginVO;
	
	/**
	 * 
	 * @author bianpeng
	 */
	public class LoginCommand extends AbstractSimpleCommand {
		public function LoginCommand() {
		}
		
		override public function execute(notify:INotification):void {
			var command:SingleSocketCommand = notify.getBody() as SingleSocketCommand;
			var vo:ReplyLoginVO = command.data as ReplyLoginVO;
			_logger.info('login responsed', vo.cx, vo.cy);
			sendNotification(SangoConst.SWITCH_GAME_VIEW, vo);
		}
	}
}

